from Utils.router import router
from Utils.gy.carshould import firstdayshould


# @router.get("/gy/carshould")
# async def carshoulde():
#     today = todayshould()
#     return {"todayPaid": today[0], "todayReceivable": today[1]}


@router.get("/gy/caryesshould", tags=['客流车流数据'], summary='昨日车场经营数据')
async def yesshould():
    yesterday = firstdayshould()
    return {"Paid": yesterday[0], "ROrderTotalAmountes": yesterday[1], "OnlineRate": yesterday[2],
            "OffLineRate": yesterday[3], "TotalCouponDuration": yesterday[4], "CashAmount": yesterday[5],
            "AlipayAmount": yesterday[6], "WeChatAmount": yesterday[7], "onlineTotalRate": yesterday[8],
            "offlineTotalRate": yesterday[9]}
